package com.gxa.service.impl;
import com.gxa.mapper.PhyExaInfoMapper;
import com.gxa.service.PhyExaInfoService;
import com.gxa.vo.PhyExaInfoVo;
import com.gxa.vo.PhyReportVo;
import com.gxa.vo.SelectByCardTimeVo;
import com.gxa.vo.UpdateRemakeVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PhyExaInfoServiceImpl implements PhyExaInfoService {

    @Autowired
    private PhyExaInfoMapper phyExaInfoMapper;

    @Override
    public List<PhyExaInfoVo> selectByCardTime(SelectByCardTimeVo selectByCardTimeVo) {
        List<PhyExaInfoVo> list = this.phyExaInfoMapper.selectPhyInfo(selectByCardTimeVo);
        return list;
    }

    @Override
    public void updateRemake(UpdateRemakeVo updateRemakeVo) {
        this.phyExaInfoMapper.updateRemake(updateRemakeVo);
    }

    @Override
    public List<PhyReportVo> selectBymedCard(String medCard) {
        List<PhyReportVo> list = this.phyExaInfoMapper.selectBymedCard(medCard);
        return list;
    }
}
